//
//  ACEStudyTableViewCell.m
//  ACE
//
//  Created by zhangtao on 2018/8/8.
//  Copyright © 2018年 zt.td. All rights reserved.
//

#import "ACEStudyTableViewCell.h"

@implementation ACEStudyTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    _momeyMarkLab.textColor = _moneyLab.textColor = MAIN_COLOR();
    _moneyLab.textColor = MAIN_COLOR();
    if ([ACEPublicTool currentRoleIsStudent]) {
        _leftImageV.image = [UIImage imageNamed:@"我的 dingdanicon"];
    }else{
        _leftImageV.image = [UIImage imageNamed:@"Group 5"];
    }
    
    _shawView.layer.cornerRadius = 5;
    _shawView.backgroundColor = [UIColor whiteColor];
    _shawView.layer.shadowColor = lightGreen.CGColor;//shadowColor阴影颜色
    _shawView.layer.shadowOffset = CGSizeMake(0,0);//shadowOffset阴影偏移,x向右偏移4，y向下偏移4，默认(0, -3)
    _shawView.layer.shadowOpacity = 0.8;//阴影透明度，默认0
    _shawView.layer.shadowRadius = 1;//阴影半径，默认3
    

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


/*
- (void)layoutSubviews
{
    [super layoutSubviews];
    
    // 去掉隐式动画
    [CATransaction begin];
    [CATransaction setDisableActions:YES];
    [self setupSlideBtn];
    [CATransaction commit];
}

// 设置左滑菜单按钮的样式
- (void)setupSlideBtn
{
    for (UIView *subView in self.subviews) {
        if([subView isKindOfClass:NSClassFromString(@"UITableViewCellDeleteConfirmationView")]) {
            
            // SMS短讯
            UIView *smsContentView = subView.subviews[0];
            smsContentView.backgroundColor = ICAN_SLIDE_BTN_COLOR;
            
            for (UIView *smsView in smsContentView.subviews) {
                [smsView removeAllSubviews];
                UIImageView *smsImage = [[UIImageView alloc] init];
                smsImage.contentMode = UIViewContentModeScaleAspectFit;
                smsImage.image = [UIImage imageNamed:@"sms_selected"];
                CGFloat width = smsView.frame.size.width;
                
                smsImage.frame = CGRectMake((width - 25) / 2, -15, 25, 25);
                [smsView addSubview:smsImage];
                
                // 文字
                UILabel *sms = [UILabel labelWithFrame:CGRectMake((width - 60) / 2, smsImage.bottom, 60, 20) text:@"SMS短讯" textColor:ICAN_BLUE_THEME_COLOR font:ICAN_FONT(14)];
                sms.textAlignment = NSTextAlignmentCenter;
                [smsView addSubview:sms];
            }
        
        }
    }
*/

@end
